import unittest

from pyramid import testing
from legocalendar.models.reswell.FDB import FederatedDatabase

class ViewTests(unittest.TestCase):
    def setUp(self):
        self.config = testing.setUp()

    def tearDown(self):
        testing.tearDown()

    def test_my_view(self):
        from .views import my_view
        request = testing.DummyRequest()
        info = my_view(request)
        self.assertEqual(info['project'], 'legocalendar')


def fullJoinTest():
  fdb = FederatedDatabase()
  a = [{'jingram3': [3, 5], 'jbyrd7': [11, 22]}, {'jbyrd7': [7,8,9]}]
  print(fdb.fullJoin(a))
